package com.juli.aimanager.system.controller;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.juli.aimanager.base.BaseController;
import com.juli.aimanager.system.service.RoleService;
import com.juli.aimanager.system.service.UserService;



@RequestMapping("/sys/user")
@Controller
public class UserController extends BaseController{
	@Autowired
	UserService userService;
	@GetMapping("")
	String user(Model model) {
		return "jsp/sys/user/user";
	}
	/**
	 * 获取全部用户列表
	 * 
	 * @param
	 * @return 全部用户对象
	 */
	@GetMapping("/list")
	@ResponseBody
	public void getUserList(HttpServletRequest request, HttpServletResponse response,
			@RequestParam Map<String, String> paramsMap) throws Exception{ 
		Map map=userService.getUserList(paramsMap);
		super.returnObjectJson(map, response);
	}

}
